<%@page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/views/common/includetag.jsp"%>

<!DOCTYPE html>
<html lang="en_US">
    <head>
        <title><spring:message code="app.template.title" /></title>
        <link rel="stylesheet" type="text/css" href="${ctx}/assets/jqueryplugin/jquery-validation/css/jquery.validate.css" />
        <link rel="stylesheet" type="text/css" href="${ctx}/assets/jqueryplugin/upload-perfect/css/custom.css">
        <link rel="stylesheet" type="text/css" href="${ctx}/assets/jqueryplugin/upload-perfect/css/jquery.filer.css">
        <link rel="stylesheet" type="text/css" href="${ctx}/assets/jqueryplugin/upload-perfect/css/jquery.filer-dragdropbox-theme.css">
		<link rel="stylesheet" type="text/css" href="${ctx}/assets/jqueryplugin/upload-perfect/css/tomorrow.css">
        <script type="text/javascript" src="${ctx}/assets/jqueryplugin/jquery-validation/jquery.validate.min.js"></script>
        <script type="text/javascript" src="${ctx}/assets/jqueryplugin/jquery-validation/localization/messages_zh.min.js"></script>
        <script type="text/javascript" src="${ctx}/assets/jqueryplugin/upload-perfect/js/jquery.filer.js"></script>
		<script type="text/javascript" src="${ctx}/assets/jqueryplugin/upload-perfect/js/prettify.js"></script>
		<script type="text/javascript" src="${ctx}/assets/jqueryplugin/upload-perfect/js/scripts.js"></script>
        <script type="text/javascript" src="${ctx}/assets/jqueryplugin/upload-perfect/js/custom.js"></script>
        <script type="text/javascript" src="${ctx}/static/js/manage/template/edit.js"></script>
    </head>
    <body>
        <div class="clearfix"></div>
        <div class="row back-top-title">
			<div class="col-md-12">
				<a id="top_parent_menu_a" onclick="location.href='${ctx}/manage/downloadTemplate'" href="javascript:void(0);"><spring:message code="app.template.title" /></a>
				<span>&nbsp;<i class="fa fa-chevron-right"></i>&nbsp;<spring:message code="app.common.edit" /></span>
			</div>
		</div>
        
        <div class="row">
			<div class="col-md-12">
				<section class="panel paddingtop20">
                    <div class="panel-body">
                    	<form class="data-form form-horizontal" role="form" method="POST" action="" enctype="multipart/form-data">
                            <input type="hidden" name="id" value="${PARAM.id}" />
                            <div class="form-group">
                                <label for="fileName" class="col-lg-2 col-sm-2 control-label"><spring:message code="app.template.title.fileName" /></label>
                                <div class="col-lg-8 col-sm-8">
                                    <input type="text" id="fileName" name="fileName" value="<c:out value="${PARAM.fileName}" />" 
                                    	class="form-control required" maxLength="100" placeholder="<spring:message code="app.template.placeholder.fileName" />">
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="type" class="col-lg-2 col-sm-2 control-label"><spring:message code="app.template.title.type" /></label>
                                <div class="col-lg-8 col-sm-8">
                                    <input type="text" id="type" name="type" value="<c:out value="${PARAM.type}" />" 
                                    	class="form-control required" maxLength="20" placeholder="<spring:message code="app.template.placeholder.type" />">
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="filePath" class="col-lg-2 col-sm-2 control-label"><spring:message code="app.template.title.filePath" /></label>
                                <div class="col-lg-8 col-sm-8">
                                    <input type="text" id="filePath" name="filePath" value="<c:out value="${PARAM.filePath}" />" readonly="readonly" class="form-control">
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="fileType" class="col-lg-2 col-sm-2 control-label"><spring:message code="app.template.title.fileType" /></label>
                                <div class="col-lg-8 col-sm-8">
                                    <input type="text" id="fileType" name="fileType" value="<c:out value="${PARAM.fileType}" />" readonly="readonly" class="form-control" >
                                </div>
                            </div>
                            <div class="form-group">
                            	<label for="fileId" class="col-lg-2 col-sm-2 control-label"><spring:message code="app.common.title.fileUpload" /></label>
                            	<div class="col-lg-8 col-sm-8">
		                             <input type="file" name="file" id="demo-fileInput-djmb" multiple="false">
		                        </div>
	                        </div>
                            <div class="form-group button-group">
								<label class="col-sm-2 control-label">&nbsp;</label>
								<div class="col-sm-7">
									<button type="submit" class="btn btn-primary submit"><spring:message code="app.common.action.submit" /></button>
                                    <a href="#none" class="btn btn-default btn-cancel"><spring:message code="app.common.action.cancel" /></a>
								</div>
							</div>
                        </form>
                    </div>
                </section>
            </div>
        </div>
    </body>
</html>